from django.contrib import admin
from .models import VerifyCode, UserProfile
from django.contrib.auth.admin import UserAdmin

# Register your models here.

# ADDITIONAL_FIELDS = (('其它信息', {'fields': ('name', 'mobile', 'email')}),)


@admin.register(UserProfile)
class UserProfileAdmin(UserAdmin):
    fieldsets = UserAdmin.fieldsets
    add_fieldsets = UserAdmin.fieldsets


@admin.register(VerifyCode)
class VerifyCodeAdmin(admin.ModelAdmin):
    list_display = ['code', 'mobile', "add_time"]
